|
|
|
BlueCielo Meridian Explorer 2012 Administrator's Guide | BlueCielo ECM Solutions
|
NEW
Configuring watermark printing
You can configure watermark text to appear on hard copies made with the AutoVue Client/Server deployment viewer, similar to the following figure.
This can be useful to indicate unapproved drawings, expiration dates, time stamps, and so on. You can configure the following characteristics of watermarks:
- Text, which can include property values
- Font, size, color, and transparency of the text
- Position on the printed page and angle of the text
- Title text to appear as the header or footer of the printed page
The watermark options are set with VBScript in the DraftPrint_SetWaterMark event procedure in the source vault configuration because it is invoked immediately before printing occurs. For more information on customizing event procedures, see the BlueCielo Meridian Enterprise VBScript API Reference.
Notes
- The DraftPrint_SetWaterMark event procedure performs the same function for AutoVue Client/Server in Explorer as the DocGenericEvent_BeforePrint procedure performs for AutoVue desktop deployment (ActiveX control) in Meridian Enterprise. The procedures can configure the same watermarks or they can configure different watermarks.
- These watermarks appear on hard copy output from the viewer and are independent of watermarks that can be added to renditions by BlueCielo Publisher as described in the BlueCielo Publisher Administrator’s Guide.
- The setting EnableMeridianPrintEvents must be set to True as described in Configuring the advanced settings.
Watermarks use the Client.Viewer.Watermark properties described in the following table. You do not have to use all of the properties, only the ones necessary to produce the results you want.
Watermark options
Angle
|
Long
|
The angle of the watermark text in degrees.
|
Color
|
String
|
The color of the watermark text, specified as an AS_WATERMARK_COLORS constant.
|
Font
|
String
|
The font of the watermark text. Can be any installed Windows font.
|
FrameWidth
|
Long
|
The width of a line framing the printed page.
|
Size
|
Long
|
The font size of the watermark text in points.
|
Style
|
Long
|
The position of the watermark text on the printed page using one or more AS_WATERMARK_STYLES constants. To combine style options, use the OR operator.
|
Text
|
String
|
The watermark text to print.
|
TitleFont
|
String
|
The font of the title text. Can be any installed Windows font.
|
TitleFontSize
|
Long
|
The font size of the title text in points.
|
TitleStyle
|
Long
|
The position of the title text on the printed page using one or more AS_WATERMARK_TITLESTYLES constants. To combine style options, use the OR operator. You can specify only one title. You cannot print one title in the header and another title in the footer.
|
TitleText
|
String
|
The title text to print. Title text is always printed in black.
|
Transparency
|
Long
|
The transparency of the watermark text in percent.
|
Following is an example event procedure that incorporates all of the watermark properties and produces a watermark and title similar to those in the preceding figure.
Sub DraftPrint_SetWaterMark(Batch)
Client.Viewer.WaterMark.Angle = 45
Client.Viewer.WaterMark.Font = "Arial"
Client.Viewer.WaterMark.Size = 36
Client.Viewer.WaterMark.Text = "NOT FOR USE" & vbCrLf & "UNCONTROLLED DOCUMENT"
Client.Viewer.WaterMark.TitleFont = "Arial"
Client.Viewer.WaterMark.TitleFontSize = 10
Client.Viewer.WaterMark.TitleStyle = AS_WMTS_CENTRED Or AS_WMTS_HEADER
Client.Viewer.WaterMark.TitleText = "Printed by: " & User.FullName & " on: " & DateValue(Today)
End Sub
Note When watermark properties are processed by the AutoVue Client/Server viewer, the following limitations apply:
- All values for Color are converted to gray
- Values for Angle other than 0, 90, 180, and 270 are converted to diagonal
- All values for Transparency are ignored and watermarks are printed semi-transparent
- All values of Style that specify positioning are ignored and watermarks are centered on the page
- Frames (AS_WMS_DRAWFRAME constant) are not supported
- TitleText is converted to header text unless it includes the special markup tags <H></H> that enclose the header text and <F></F> that enclose the footer text.